/**
 * 
 */
package com.ws.framework.service;

import java.util.List;

import com.ws.framework.model.App;
import com.ws.framework.model.Page;

/**
 * <p>
 * </p>
 *
 * @author WSH
 */
public interface AppService {
	
	/**
	 * 分页查询
	 * @param page
	 * @return
	 */
	Page<App> select4Page(Page<App> page);

	/**
	 * 新增app
	 * @param app
	 * @return
	 */
	boolean insert(App app);
	
	/**
	 * 根据管理人查询 app
	 * @param manager
	 * @return
	 */
	List<App> selectAppByManager(String manager);
	
	/**
	 * 根据id查询 app
	 * @param manager
	 * @return
	 */
	App selectAppById(long id);
	
	/**
	 * 根据code查询 app
	 * @param manager
	 * @return
	 */
	App selectAppByCode(String code);
	
}
